package club.pchome.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import club.pchome.dto.UserInfoDto;
import club.pchome.model.AutoSign;
import club.pchome.model.User;
import club.pchome.util.PageUtil;

@Mapper
public interface AutoSignMapper {
    
    List<AutoSign> getAccountList();
    
    List<AutoSign> getAccountList(PageUtil<User> pu);
    
    List<AutoSign> getAccountAndSignList();
    
    List<AutoSign> checkAccountStatus();

    List<AutoSign> getUserHolder(@Param(value="userName") String userName);

    List<AutoSign> updateHolderNC();
    
    List<UserInfoDto> getUserNC();
    
    List<AutoSign> getUserHolderOrKYSE(@Param(value="userName") String userName , @Param(value="ksye") int ksye);
    
    List<AutoSign> getUserPhone(@Param(value="phoneList") String phoneList);
    
    int toDaySendSMSCount();
    
    int isAutoSign();

    int isAutoNC();
    
    long updateAccountInfo(AutoSign record);
    
    long updateSMSNum(AutoSign record);
    
    long updateSignStatus();
    
    long insert( User user );
    
    long getUserDataByPhone( User user);
    
	List<UserInfoDto> getUserList(Map<String, Object> map);

	long getUserListCount(Map<String, Object> map);
	
}